﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="TechieProfile.aspx.vb" Inherits="TechJunkieProj.TechieProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href='http://fonts.googleapis.com/css?family=Patrick+Hand' rel='stylesheet' type='text/css'>
    <p>
        &nbsp;</p>
    <div style="width:195px; height:200px;float:right; right: -20px">
           <asp:Button ID="Btn_editProfile" runat="server" Text="Edit Your Profile" 
               PostBackUrl="~/createProfile.aspx" CssClass="ExtremeLeftDisplay" 
               Height="30px" Width="120px"/>
         </div>

        <div style="width:1px;height:200px;width: 300px; float:left;position:relative;top: 524px; left: 300px;">
            <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource2">
                <AlternatingItemTemplate >
                    <span style="" ><b>TechieName:</b> &nbsp&nbsp&nbsp<asp:Label ID="TechieNameLabel" runat="server" 
                        Text='<%# Eval("TechieName") %>' />
                    <br /><br />
                    <b>Gender:</b> &nbsp&nbsp&nbsp<asp:Label ID="GenderLabel" runat="server" Text='<%# Eval("Gender") %>' />
                    <br /><br />
                    <b>TelNumber</b> &nbsp&nbsp&nbsp<asp:Label ID="TelNumberLabel" runat="server" Text='<%# Eval("TelNumber") %>' />
                    <br /><br />
                    <b>OwnedCell:</b> &nbsp&nbsp&nbsp<asp:Label ID="OwnedCellLabel" runat="server" Text='<%# Eval("OwnedCell") %>' />
                    <br /><br />
                    <b>Network:</b> &nbsp&nbsp&nbsp<asp:Label ID="NetworkLabel" runat="server" Text='<%# Eval("Network") %>' />
                    <br /><br />
<br /></span>
                </AlternatingItemTemplate>
                <EditItemTemplate>
                    <span style="">TechieName:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="TechieNameTextBox" runat="server" 
                        Text='<%# Bind("TechieName") %>' />
                    <br />
                    Gender:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="GenderTextBox" runat="server" Text='<%# Bind("Gender") %>' />
                    <br />
                    TelNumber:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="TelNumberTextBox" runat="server" 
                        Text='<%# Bind("TelNumber") %>' />
                    <br />
                    OwnedCell:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="OwnedCellTextBox" runat="server" 
                        Text='<%# Bind("OwnedCell") %>' />
                    <br />
                    Network:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="NetworkTextBox" runat="server" Text='<%# Bind("Network") %>' />
                    <br />
                    <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                        Text="Update" />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                        Text="Cancel" />
                    <br /><br /></span>
                </EditItemTemplate>
                <EmptyDataTemplate>
                    <span>No data was returned.</span>
                </EmptyDataTemplate>
                <InsertItemTemplate>
                    <span style="">TechieName:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="TechieNameTextBox" runat="server" 
                        Text='<%# Bind("TechieName") %>' />
                    <br />Gender:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="GenderTextBox" runat="server" Text='<%# Bind("Gender") %>' />
                    <br />TelNumber:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="TelNumberTextBox" runat="server" 
                        Text='<%# Bind("TelNumber") %>' />
                    <br />OwnedCell:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="OwnedCellTextBox" runat="server" 
                        Text='<%# Bind("OwnedCell") %>' />
                    <br />Network:&nbsp&nbsp&nbsp
                    <asp:TextBox ID="NetworkTextBox" runat="server" Text='<%# Bind("Network") %>' />
                    <br />
                    <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                        Text="Insert" />
                    <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                        Text="Clear" />
                    <br /><br /></span>
                </InsertItemTemplate>
                <ItemTemplate>
                    <span style="" ><b>TechieName:</b>&nbsp&nbsp&nbsp<asp:Label ID="TechieNameLabel" runat="server" 
                        Text='<%# Eval("TechieName") %>' />
                    <br />
                    <br />
                    <b>Gender:</b> &nbsp&nbsp&nbsp<asp:Label ID="GenderLabel" runat="server" 
                        Text='<%# Eval("Gender") %>' />
                    <br /><br />
                    <b>TelNumber:</b> &nbsp&nbsp&nbsp<asp:Label ID="TelNumberLabel" runat="server" Text='<%# Eval("TelNumber") %>' />
                    <br /><br />
                    <b>OwnedCell:</b> &nbsp&nbsp&nbsp<asp:Label ID="OwnedCellLabel" runat="server" Text='<%# Eval("OwnedCell") %>' />
                    <br /><br />
                    <b>Network:</b> &nbsp&nbsp&nbsp<asp:Label ID="NetworkLabel" runat="server" Text='<%# Eval("Network") %>' />
                    <br /><br />
<br /></span>
                </ItemTemplate>
                <LayoutTemplate>
                    <div ID="itemPlaceholderContainer" runat="server" style="">
                        <span runat="server" id="itemPlaceholder" />
                    </div>
                    <div style="">
                    </div>
                </LayoutTemplate>
                <SelectedItemTemplate>
                    <span style="">TechieName:&nbsp&nbsp&nbsp
                    <asp:Label ID="TechieNameLabel" runat="server" 
                        Text='<%# Eval("TechieName") %>' />
                    <br />
                    Gender:&nbsp&nbsp&nbsp
                    <asp:Label ID="GenderLabel" runat="server" Text='<%# Eval("Gender") %>' />
                    <br />
                    TelNumber:&nbsp&nbsp&nbsp
                    <asp:Label ID="TelNumberLabel" runat="server" Text='<%# Eval("TelNumber") %>' />
                    <br />
                    OwnedCell:&nbsp&nbsp&nbsp
                    <asp:Label ID="OwnedCellLabel" runat="server" Text='<%# Eval("OwnedCell") %>' />
                    <br />
                    Network:&nbsp&nbsp&nbsp
                    <asp:Label ID="NetworkLabel" runat="server" Text='<%# Eval("Network") %>' />
                    <br />
<br /></span>
                </SelectedItemTemplate>
            </asp:ListView>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
                
                
                
                SelectCommand="SELECT [TechieName], [Gender], [TelNumber], [OwnedCell], [Network] FROM [UserProfile] WHERE ([TechieName] = ?)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="TechieName" QueryStringField="TechieName" 
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
       </div>
        
        <asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource3">
            <EditItemTemplate>
                <h1>Welcome</h1>
                FName:
                <asp:TextBox ID="FNameTextBox" runat="server" Text='<%# Bind("FName") %>' Font-Bold = "true" Font-Size="X-Large"/>
                <br />
                LName:
                <asp:TextBox ID="LNameTextBox" runat="server" Text='<%# Bind("LName") %>' Font-Bold = "true" Font-Size="X-Large"/>
                <br />
                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                    CommandName="Update" Text="Update" />
                &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                    CausesValidation="False" CommandName="Cancel" Text="Cancel" />
            </EditItemTemplate>
            <InsertItemTemplate>
                FName:
                <asp:TextBox ID="FNameTextBox" runat="server" Text='<%# Bind("FName") %>' />
                <br />
                LName:
                <asp:TextBox ID="LNameTextBox" runat="server" Text='<%# Bind("LName") %>' />
                <br />
                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                    CommandName="Insert" Text="Insert" />
                &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                    CausesValidation="False" CommandName="Cancel" Text="Cancel" />
            </InsertItemTemplate>
            <ItemTemplate>
            <h1>Welcome</h1>
                <asp:Label ID="FNameLabel" runat="server" Text='<%# Bind("FName") %>' Font-Bold = "true" Font-Size="X-Large"/>
                <asp:Label ID="LNameLabel" runat="server" Text='<%# Bind("LName") %>' Font-Bold = "true" Font-Size="X-Large"/>
                <br />

            </ItemTemplate>
    </asp:FormView>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
        
        SelectCommand="SELECT [FName], [LName] FROM [UserProfile] WHERE ([TechieName] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="TechieName" QueryStringField="TechieName" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
        <br />
        <br />
    <br />
        
    <asp:Panel ID="Panel1" runat="server">
   <div class = "style3">
            <b><asp:Label ID="Label2" runat="server" CssClass="style2" 
                Text="Posts Added:"></asp:Label></b>
            &nbsp;
            <asp:Label ID="lblpostsAdded" runat="server" CssClass="style2" 
                style="color: #0000FF" Text="Label"></asp:Label>
             <br />

         </div>
         <br />
         <br />
         <div>
           <b><asp:Label ID="Label1" runat="server" CssClass="style2" 
                Text="Discussions Added: "></asp:Label></b>
            &nbsp;<asp:Label ID="lbldiscussionsadded" runat="server" CssClass="style2" 
                style="color: #0000FF" Text="Label"></asp:Label>
            <br />
         </div>
    </asp:Panel>
    
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionStringList %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionStringList.ProviderName %>" 
            
        SelectCommand="SELECT [Picture] FROM [UserProfile] WHERE ([TechieName] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="TechieName" QueryStringField="TechieName" 
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <div style="width:1px;height:200px;float:left; left:100px; top:50px">
           <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" GridLines="None">
            <Columns>
                   <asp:ImageField DataImageUrlField="Picture" ControlStyle-Height= "250px" ControlStyle-Width = "250px">
<ControlStyle BorderStyle="None"></ControlStyle>

                       <FooterStyle BorderStyle="None" />
                       <HeaderStyle BorderStyle="None" />
                       <ItemStyle BorderStyle="None" />
                   </asp:ImageField>
                   </Columns>
        </asp:GridView>
        </div>
           
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
